<?php
/**
 * Created by PhpStorm.
 * User: gsheng
 * Date: 2019/5/31
 * Time: 8:11 PM
 */

namespace app\index\model;


use think\Model;

class User extends Model
{
    protected $autoWriteTimestamp = true;

    //    修改器
    public function setPasswordAttr ($val)
    {
        return md5($val);
    }

}